package com.syni.mdd.yhd.common.all.entity.pay.wxmodel;

import com.ijpay.core.model.BaseModel;
import lombok.Data;

/**
 * @className ProfitSharingAddModel
 * @description TOO
 * @Author cfx
 * @DATE 2020/3/16 15:30
 * @VERSION 1.0
 **/
@Data
public class ProfitSharingAddModel extends BaseModel {
    private String appid;
    private String mch_id;
    private String nonce_str;
    private String sign;
    private String sign_type;
    private String receiver;

    public static ProfitSharingAddModel.ProfitSharingAddModelBuilder builder() {
        return new ProfitSharingAddModel.ProfitSharingAddModelBuilder();
    }

    public ProfitSharingAddModel(String appid, String mch_id, String nonce_str, String sign, String sign_type, String receiver) {
        this.appid = appid;
        this.mch_id = mch_id;
        this.nonce_str = nonce_str;
        this.sign = sign;
        this.sign_type = sign_type;
        this.receiver = receiver;
    }


    public static class ProfitSharingAddModelBuilder {
        private String appid;
        private String mch_id;
        private String nonce_str;
        private String sign;
        private String sign_type;
        private String receiver;


        ProfitSharingAddModelBuilder() {
        }

        public ProfitSharingAddModel.ProfitSharingAddModelBuilder appid(String appid) {
            this.appid = appid;
            return this;
        }

        public ProfitSharingAddModel.ProfitSharingAddModelBuilder mch_id(String mch_id) {
            this.mch_id = mch_id;
            return this;
        }


        public ProfitSharingAddModel.ProfitSharingAddModelBuilder nonce_str(String nonce_str) {
            this.nonce_str = nonce_str;
            return this;
        }

        public ProfitSharingAddModel.ProfitSharingAddModelBuilder sign(String sign) {
            this.sign = sign;
            return this;
        }

        public ProfitSharingAddModel.ProfitSharingAddModelBuilder sign_type(String sign_type) {
            this.sign_type = sign_type;
            return this;
        }


        public ProfitSharingAddModel.ProfitSharingAddModelBuilder receiver(String receivers) {
            this.receiver = receivers;
            return this;
        }

        public ProfitSharingAddModel build() {
            return new ProfitSharingAddModel(this.appid, this.mch_id, this.nonce_str, this.sign,this.sign,this.receiver);
        }
    }
}
